package com.ruoyi.system.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum HotelRoomTypEnum {

    ONE(1, "大床房"),
    TWO(2, "双床房"),
    MORE(3, "套房");

    private Integer key;
    private String value;


    public static String getByKey(Integer type) {
        for (HotelRoomTypEnum item : HotelRoomTypEnum.values()) {
            if (item.key.equals(type)) {
                return item.value;
            }
        }
        return null;
    }
}
